﻿using DataBase;
using Prism.Commands;
using Prism.Mvvm;
using System.Collections.ObjectModel;

namespace GreenXi.Model
{
    public class DecisionModel : BindableBase
    {
        public DelegateCommand<object> ImageClickCommand { get; set; }
        #region 数据绑定

        private ObservableCollection<DecisionType> _imagePaths;

        public ObservableCollection<DecisionType> ImagePaths
        {
            get => _imagePaths;
            set
            {
                SetProperty(ref _imagePaths, value);
            }
        }
        #endregion

        public class Decision
        {
            /// <summary>
            /// 主键，自动递增
            /// </summary>

            public int ID { get; set; }


            /// <summary>
            /// 排序
            /// </summary>

            public int Sort { get; set; }

            /// <summary>
            /// 类型
            /// </summary>


            public string Type { get; set; }


            /// <summary>
            /// 类型
            /// </summary>


            public double X1 { get; set; }

            /// <summary>
            /// 类型
            /// </summary>


            public double X2 { get; set; }

            /// <summary>
            /// 类型
            /// </summary>


            public double Y1 { get; set; }


            /// <summary>
            /// 类型
            /// </summary>

            public double Y2 { get; set; }

        }
    }
}
